home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / mslang / mfcvbx / vbxpw.h_ / vbxpw.h
Encoding:
C/C++ Source or Header  |  1993-10-01  |  1.0 KB  |  55 lines

  1. //
  2. // $Id$
  3. //
  4. // Module    :     vbxpw.h
  5. //
  6. // Author    :     James Bish
  7. //
  8. // Date        :     06/15/93
  9. //
  10. // $Log$
  11. //
  12. // Copyright (c) Bish Programming 1993 - All Rights Reserved.
  13. //
  14.  
  15. //
  16. // CVBXPopupWnd window
  17. //
  18.  
  19. #ifndef __VBXPW_H__
  20. #define __VBXPW_H__
  21.  
  22. #include "mfcvbx.h"
  23.  
  24. class CVBPopupWnd : public CWnd
  25. {
  26. // Construction
  27. public:                  
  28.     CVBPopupWnd();
  29.     
  30.     CVBPopupWnd(CVBCtlWnd *pCtl, USHORT iProperty);
  31.  
  32. // Attributes
  33. public:
  34.     virtual void DoPopupDlg();
  35.  
  36.     LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  37.  
  38.     HCTL GetParentControl() { return pParent->m_hCtl; }
  39.     USHORT GetProperty() { return m_iProperty; }
  40.     
  41.     void SetControlProperty(LONG val) { ::VBSetControlProperty(pParent->m_hCtl, m_iProperty, val ); }
  42.     void GetControlProperty(LPVOID lpdata) { ::VBGetControlProperty(pParent->m_hCtl, m_iProperty, lpdata ); } 
  43.     
  44. // Implementation
  45. public:
  46.     virtual ~CVBPopupWnd();
  47.  
  48.     // Generated message map functions
  49. protected:
  50.     CVBCtlWnd *pParent;
  51.     CString m_ClassName;
  52.     USHORT    m_iProperty;
  53. };
  54.  
  55. #endif // __VBXPW_H__